<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>房屋详细</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<table>
  	<tr>
  	<td>房屋标题</td>
  	<td>${houseForm.house_title}</td>
  	</tr>
  	<tr>
  	<td>地区</td>
  	<td>${houseForm.region}</td>
  	</tr>
  	<tr>
  	<td>房屋类型</td>
  	<td>${houseForm.house_type}</td>
  	</tr>
  	<tr>
  	<td>房屋地址</td>
  	<td>${houseForm.house_address}</td>
  	</tr>
  	<tr>
  	<td>房屋租金</td>
  	<td>${houseForm.rent}元/月</td>
  	</tr>
  	<tr>
  	<td>具体描述</td>
  	<td>${houseForm.description}</td>
  	</tr>
  	<tr>
  	<td>房屋朝向</td>
  	<td>${houseForm.direction}</td>
  	</tr>
  	<tr>
  	<td>物业公司</td>
  	<td>${houseForm.property_management_company}</td>
  	</tr>
  	<tr>
  	<td>完成日期</td>
  	<td>${houseForm.completed_date}</td>
  	</tr>
  	<tr>
  	<td>位于几层</td>
  	<td>${houseForm.floor}</td>
  	</tr>
  	<tr>
  	<td>周围设施</td>
  	<td>${houseForm.supporting_facility}</td>
  	</tr>
  	<tr>
  	<td>房屋信息验证</td>
  	<td>${houseForm.watch}</td>
  	</tr>
  	<tr>
  	<td>发布用户</td>
  	<td>${houseForm.user_name}</td>
  	</tr>
  	<tr>
  	<td>联系电话</td>
  	<td>${houseForm.phone_number}</td>
  	</tr>
  	<tr>
  	<td>可看房时间</td>
  	<td>${houseForm.look_time}</td>
  	</tr>
  	</table>
  	
  	${requestScope.noticeposted}<br/>
  	<html:link action="noticepost" paramName="houseForm" paramId="house_id" paramProperty="house_id">申请看房</html:link><br/>
  	
  	<display:table name="house_comment_list" pagesize="10" export="false" id="house_comment"
        			   requestURI="toviewsinglehousepage.do">
        <display:setProperty name="export.excel.filename">
        <%=new String("房屋评论.xls".getBytes("GBK"),"ISO-8859-1") %>
        </display:setProperty>
        <display:column property="user_name" title="用户名"/>
        <display:column property="comment_for_house" title="评论"/>
        </display:table>
        
        <html:form action="/housecommentpost" method="post">
        <table>
        <html:hidden name="houseCommentForm" property="house_id" value="${houseForm.house_id}"/>
        <html:hidden name="houseCommentForm" property="user_id" value="${sessionScope.user_id}"/>
        <tr>
        <td>${houseCommentForm.errorMsg}</td>
        </tr>
        <tr>
        <td>我也要发表评论</td>
        <td>                         
        <html:textarea name="houseCommentForm" property="comment_for_house" value=""/>
        </td> 
        </tr>
        <tr>
        <td>
        <html:submit value="提交"/>
        </td>
        </tr>
        </table>
        </html:form>
  </body>
</html:html>
